package cn.atzxc.qy.service;

import cn.atzxc.qy.domain.Order;
import cn.atzxc.qy.domain.vo.OrderVo;
import cn.atzxc.qy.domain.vo.TaskVo;

import java.util.List;

public interface OrderService {

    Boolean insertOrder(String token, Order order, TaskVo taskVo) throws Exception;

    OrderVo selectOneByTaskId(Long taskid);
    OrderVo selectOneByUserId(Long orderId);

    int alreayArrived(String token,Long orderid,Long taskid) throws Exception;

    //我是用户，待收货
    List<OrderVo> selectWaitGet(String token) throws Exception;
    //我是骑手，配送中
    List<OrderVo> selectOrderInfoByQiId(String token) throws Exception;
    //查询属于我的已经完成的订单
    List<OrderVo> selectOrderInfoByWanCheng(String token) throws Exception;
    //查询出属于我的所有订单
    List<OrderVo> selectAllOrderInfo(String token) throws Exception;
    //查询出所有正在售后中的订单
    List<OrderVo> selectOrderInfoByShouHou(String token) throws Exception;

    //确认收货
    int sureArrive(String token, OrderVo orderVo) throws Exception;
    Boolean isRider(String token) throws Exception;

    Long[] selectOrderCount(String token) throws Exception;
}
